package com.bit.cfdi.web.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Service;

import com.bit.cfdi.web.dao.PaisDAO;
import com.bit.cfdi.web.domain.Pais;
@Service
public class PaisService {

	@Autowired PaisDAO paisDAO;
	
	public List<Pais> getAll() throws DataAccessException {
		return paisDAO.getAll();
	}

	public void save(Pais pais) throws DataAccessException {
		paisDAO.save(pais);		
	}

}
